﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZF.BLL;
using ZF.BLL;
using System.Linq.Expressions;
using ZF.BLL;
using System.Linq.Expressions;
using GCELibrary.Current;
using ZF.BLL.Linq;
using GCELibrary.Current;
using ZF.Model;
namespace ZF.WS.expert
{
    public partial class about : BLL.Page.PageBase
    {
        

        [PageArgument(Key = "id", CanNull = false)]
        public int Id { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            using (var dc = SiteInfo.CreateDBDataContext())
            {
                var expert = dc.US_Member.FirstOrDefault(p => p.MemberId == Id && p.IsExpert);

                if (expert == null)
                {
                    throw WarnFactory.CreateWarn(WarnCode.ReocrdNoFind);
                }
                this.litAbout.Text = expert.About;
            }

        }
    }
}
